package com.youli.gb.filter;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

public class DemoFilter implements Filter{

	@Override
	public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain)
			throws IOException, ServletException {
		System.out.println("拦截器：DemoFilter,拦截之前");
		chain.doFilter(req,resp);
		System.out.println("拦截器：DemoFilter,拦截之后");
		
		
	}

}
